import thread
from time import ctime,sleep

loops =[4,2]
def loop(nloop,nsec):
    print 'start loop',nloop,'at',ctime()
    